package com.qidian.mes.sys.mapper;

import com.qidian.mes.pojo.Dict;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 戴着假发的程序员
 * @Company 起点编程
 * @Description
 * @Time 2024/4/2 11:15
 */
public interface DictMapper {
    List<Dict> queryAll();

    int deleteByDictIdInt(Long dictId);

    int updateDict(Dict sysDict);

    Dict selectById(Long dictId);

    Dict selectByType(String dictType);
    Dict selectByName(String dictName);
    int deleteByIds(@Param("dictIds") Long [] dictIds);
    /**
     *
     * @param dict
     * @return
     */
    int insertDict(Dict dict);
    /**
     * 多条件分页查询
     * @param sysDict
     * @param start
     * @param limit
     * @return
     */
    List<Dict> selectByPage(@Param("dict") Dict sysDict, @Param("start") int start, @Param("limit") int limit);
    int selectCount(Dict dict);
}
